package com.ly.springMVC.Service.impl;/*
 * 项目名称:MySpringMVC
 * 类名称:SysUserService.java
 * 包名称:com.ly.springMVC.Service
 *
 * 修改履历:
 *      日期                修正者      主要内容
 *      2019-03-22 11:16    apple      初版完成
 *
 * Copyright (c) 2017-2019 咨同科技
 */

import com.ly.springMVC.Service.SysUserService;
import com.ly.springMVC.annotation.ZtAutoWired;
import com.ly.springMVC.annotation.ZtService;
import com.ly.springMVC.dao.SysUserDao;
import com.ly.springMVC.entity.SysUserEntity;

import java.util.List;

/**
 * SysUserService
 *
 * @author apple
 */
@ZtService
public class SysUserServiceImpl implements SysUserService {

    @ZtAutoWired
    private SysUserDao sysUserDao;

    @Override
    public void add(SysUserEntity sysUserEntity) {
        sysUserDao.add(sysUserEntity);
    }

    @Override
    public void delete(String id) {
        sysUserDao.delete(id);
    }

    @Override
    public void update(SysUserEntity sysUserEntity) {
        sysUserDao.update(sysUserEntity);
    }

    @Override
    public List<SysUserEntity> list() {
        return sysUserDao.list();
    }
}